const urls = {
  v1: {
    system: {
      smsCode: {
        get: '/v1/system/smsCode/get',
      },
      email: {
        send: '/v1/system/email/send',
        valid: '/v1/system/email/valid',
      },
      mobile: {
        send: '/v1/system/mobile/send',
        valid: '/v1/system/mobile/valid',
      },
      auth: {
        logout: '/v1/system/auth/logout',
        loginOrRegister: '/v1/system/auth/loginOrRegister',
        login: '/v1/system/auth/login',
        currentUser: '/v1/system/auth/currentUser',
        scan2login: '/v1/system/auth/scan2login',
        resetPassword: '/v1/system/auth/resetPassword',
      },
      user: {
        list: '/v1/system/user/list',
        getById: '/v1/system/user/getById',
        add: '/v1/system/user/add',
        update: '/v1/system/user/update',
        del: '/v1/system/user/del',
        exportTemplate: '/v1/system/user/exportTemplate',
        import: '/v1/system/user/import',
        export: '/v1/system/user/export',
      },
      valueSet: {
        listBySetCode: '/v1/system/valueSet/listBySetCode',
        add: '/v1/system/valueSet/add',
        update: '/v1/system/valueSet/update',
        del: '/v1/system/valueSet/del',
        delBySetCode: '/v1/system/valueSet/delBySetCode',
        exportTemplate: '/v1/system/valueSet/exportTemplate',
        import: '/v1/system/valueSet/import',
        export: '/v1/system/valueSet/export',
      },
      resource: {
        list: '/v1/system/resource/list',
        add: '/v1/system/resource/add',
        update: '/v1/system/resource/update',
        del: '/v1/system/resource/del',
        delBySetCode: '/v1/system/resource/delBySetCode',
        exportTemplate: '/v1/system/resource/exportTemplate',
        import: '/v1/system/resource/import',
        export: '/v1/system/resource/export',
        changeTree: '/v1/system/resource/changeTree',
      },
      role: {
        list: '/v1/system/role/list',
        add: '/v1/system/role/add',
        update: '/v1/system/role/update',
        del: '/v1/system/role/del',
        delBySetCode: '/v1/system/role/delBySetCode',
        exportTemplate: '/v1/system/role/exportTemplate',
        import: '/v1/system/role/import',
        export: '/v1/system/role/export',
      },
      websocket: {
        sendAll: '/v1/system/websocket/sendAll',
      },
    },
  },
  v3: {
    news: {
      list: '/v3/news/list',
      add: '/v3/news/add',
      del: '/v3/news/del',
      update: '/v3/news/update',
      get: '/v3/news/get',
    },
  },
  cos: {
    getFile: '/cos/getFile', // get请求
    uploadFile: '/cos/uploadFile',
  },
}

export default urls
/**
 * 配置需要缓存请求结果的url
 */
export const cacheUrls = [urls.v1.system.valueSet.listBySetCode]
